import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/router.js' //引入router
import ElementPlus from 'element-plus' //引入element-plus
import 'element-plus/dist/index.css' //引入element-plus样式
import{ElMessage,ElMessageBox} from 'element-plus' 
const app = createApp(App)

app.use(router) // 使用路由
app.use(ElementPlus) // 使用element-plus
app.config.globalProperties.$message = ElMessage
app.config.globalProperties.$alert = ElMessageBox.alert
app.config.globalProperties.$confirm = ElMessageBox.confirm
app.config.globalProperties.$prompt = ElMessageBox.prompt
app.mount('#app')
